<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?php echo $title ?></title>
  <style>
    li { list-style :none;}
  </style>
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(204, 232, 207);" class="responsive">
<!-- 头部 -->
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!-- 导航栏 -->
<div class="row-fluid">
  <nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="<?php echo site_url().'/blog' ?>">博客长城</a>
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          <li class="<?php if(empty($cate_id)) echo 'active' ?>"><a href="<?php echo site_url().'/blog' ?> ">推荐</a></li>
          <?php foreach ($cate_nav as $k => $v) : ?>
            <li class="<?php if($cate_id == $v->id) echo 'active' ?> "><a href="<?php echo site_url().'/blog/cate_list/'.$v->id ?> "><?php echo $v->name ?></a></li>
          <?php endforeach; ?>
        </ul>
        <!-- 右边区域 -->
        <ul class="nav navbar-nav navbar-right">
          <?php if(empty($login_status)): ?>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">fizz <span class="caret"></span></a>
              <ul class="dropdown-menu" role="menu">
                <li><a href="<?php echo site_url() ?>/blog/add">博客发布</a></li>
                <li><a href="#">博客管理</a></li>
                <li class="divider"></li>
                <li><a href="#">退出登陆</a></li>
              </ul>
            </li>
          <?php else: ?>
            <li class="dropdown">
              <a href="#" class="" role="button">登陆 </a>
            </li>
          <?php endif; ?>
        </ul>
      </div><!--/.nav-collapse -->
    </div>
  </nav>
</div>
<!-- 固定顶部占位 -->
<div class="navbar"></div>
<!-- 导航结束 -->
<!-- 头部结束 -->